<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html>
<head>
<title>类别管理</title>
<script type="text/javascript" src="${ctx}/script/product/catalog.js"></script>
<script type="text/javascript" src="${ctx}/script/common.js"></script>
<link href="${ctx}/css/safeai/together.css" rel="stylesheet" type="text/css">
<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
</head>
  <body>
    <html:form method="post" action="/catalog/catalogMessage.do?method=addCatalog" target="catalogTree" onsubmit="return checkModifyCatalog();">
	 <table align="center" width="400px">
	    <tr>
	    	<th colspan="2" class="td_01" height="25px">添加类别<input type="hidden" name="catalog.catalogCode" value="${catalogCode}"/></th>
	    </tr>
	    <tr>
	    	<td class="td_01">名称：</td>
	    	<td class="td_04"><input type="text" name="catalog.cname" maxlength="50" id="catalog.cname"/><span style="color:red;">﹡</span></td>
	    </tr>
		<tr>
	    	<td class="td_01">父类名称：</td>
		    <logic:empty name="catalogCode">
		    	<td class="td_04">
					<input type="text" name="show" value="安全爱" readonly/>				</td>
			</logic:empty>
			<logic:notEmpty name="catalogCode"> 
  				<td class="td_04">
					<input type="text" name="show" value="${selectedName}" readonly/>				</td>
 			 </logic:notEmpty>
	    </tr>
		<tr>
	    	<td class="td_01">状态：</td>
	    	<td class="td_04">
				<select name="catalog.status">
					<option value="1">正常状态</option>
					<option value="0">暂停状态</option>
				</select>			</td>
	    </tr>
		<tr>
	    	<td class="td_01">顺序：</td>
	    	<td class="td_04">
				<input type="text" name="catalog.sequence" id="catalog.sequence"/><span style="color:red;">﹡</span></td>
	    </tr>
	    <tr>
			<td colspan="2" class="td_01" ><input type="submit" class="btn" value="提交" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			 <input type="button" class="btn" value="返回" onClick="javascript:history.go(-1);" ;  style="border: 1 solid #000000" />	
            </td>
	   </tr>
		</table>
	</html:form>	
</body>
</html>
